import {request} from '../utils/request.js'

const apiUrl = {
	addFavor:'/group/favor/addFavor',
	removeFavor:'/group/favor/removeFavor',
	getUserFavorGroupPage:'/group/favor/getUserFavorGroupPage'
}

export function addFavor(data) {
	return request(`${apiUrl.addFavor}?groupId=${data}`, 'POST')
}

export function removeFavor(data) {
	return request(apiUrl.removeFavor, 'DELETE', data)
}

export function getUserFavorGroupPage(data) {
	return request(apiUrl.getUserFavorGroupPage, 'POST', data)
}